package com.kede.api.stand.controller;

import com.kede.api.stand.service.GoodService;
import com.kede.pojo.ResHttp;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 独立服务
 *
 * @author 11856
 * @date 2023/06/12
 */
@RequestMapping("good")
@RestController
public class GoodController {

    @Resource
    private GoodService goodService;

    /**
     * 获取商品的品类详情
     * @param gid
     * @return
     */
    @GetMapping("getGoodTypeDetail")
    public ResHttp getGoodTypeDetail(Integer gid){
        return goodService.getGoodTypeDetail(gid);
    }

}
